package c3;
import java.util.concurrent.ThreadLocalRandom;

public class RandomTest2 {
    public static void main(String[] args){
        //创建一个默认种子的随机数生成器
        ThreadLocalRandom threadLocalRandom= ThreadLocalRandom.current();
        for(int i=0;i<10;i++){
            System.out.println(threadLocalRandom.nextInt(5));
        }
    }
}
